export default function useReportInit(
  loadList: () => Promise<any>,
  initInputIndex: () => void,
) {
  async function init() {
    await loadList()
    await nextTick()
    initInputIndex()
  }

  onMounted(() => {
    init()
  })
}
